import os
basedir = os.path.abspath(os.path.dirname(__file__))


class Config:
	Second = 1
	Minute = 60
	Hour = 3600
	port = 5200
	@staticmethod
	def init_app(app):
		pass

class LwLocalDevConfig(Config):
	DEBUG = True
	PUB = False
	EXCEPTION_HANDLE = True
	# MySQL
	MYSQL_URI = "mysql+pymysql://movingc_db_test:movingc_db_user_123@rm-wz95g4n8212p9cld3o.mysql." \
	            "rds.aliyuncs.com:3306/movingc_db_test"


class RemoteDevConfig(Config):
	DEBUG = True
	PUB = False
	EXCEPTION_HANDLE = True
	# MySQL
	MYSQL_URI = "mysql+pymysql://movingc_db_test:movingc_db_user_123@rm-wz95g4n8212p9cld3o.mysql." \
	            "rds.aliyuncs.com:3306/movingc_db_test"


config = {
	'lw_local_dev': LwLocalDevConfig,
	'remote_dev': RemoteDevConfig,
}
